package com.project.service.impl;

import com.project.bean.CityBean;
import com.project.mapper.ICityMapper;
import com.project.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CityServiceImpl implements ICityService {
    @Autowired
    private ICityMapper mapper;
    @Override
    public List<CityBean> findByContry(int contryId) {
        return mapper.findByContry(contryId);
    }
}
